import instance from "@/utils/request";

export const getAdminList=()=>{
    return instance.get('/admin/list')
}
interface IAdmin{
    adminname:string
    password:string
    role:string
    checkedKeys:string[]
}
export const AddAdmin=(data:IAdmin)=>{
    return instance.post('/admin/add',data)
}